﻿@using BonjourQuotation.UI.Models.SetupModel
@model SetupServicesGridViewModel
@{
    
}
@using (@Html.BeginForm("AddNewService", "Setup", FormMethod.Post, new { id = "AddNewServiceForm" }))
{
     <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    Model.SelectedServiceServiceTypeID = Model.Rows[0].ServiceTypeID;
    <div class="pull-right" style="margin-bottom:15px;">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-9">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SelectedServiceServiceTypeIDText)</span>
                    @Html.DropDownListFor(model => Model.SelectedServiceServiceTypeIDText, new SelectList(Model.ServiceType, "Value", "Text"), "Select", new { @class = "ServiceAddElementChange table_inputs_SmallPadding2 inpputgr form-control ServiceTypeDrop ElementsForValidation Required" })
                    @Html.DropDownListFor(model => Model.Rows[0].ServiceTypeID, new SelectList(Model.ServiceType, "Value", "Text"), "Select", new { @class = "RoomGridDropHide" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-2">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsActive)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsActive, new { @class = "ServiceAddElementChange" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-5">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].ServiceCode)</span>
                    @Html.TextBoxFor(model => model.Rows[0].ServiceCode, new { @class = "ServiceAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength20 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-7">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].ServiceDescription)</span>
                    @Html.TextBoxFor(model => model.Rows[0].ServiceDescription, new { @class = "ServiceAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength50" })
                </div>
            </div>
        </div>
        <div class="SaveCancelDiv">
            <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
            <button class="btn14 btn50" type="button" id="ServiceAddBtn">Save</button>
        </div>
    </div>
}





